//
//  TestSingleImageCell.m
//  Cooper_Table_Example
//
//  Created by 计海峰 on 2021/7/27.
//  Copyright © 2021 jhfappkf@163.com. All rights reserved.
//

#import "TestSingleImageCell.h"

@interface TestSingleImageCell ()

@property (nonatomic, strong) UILabel *urlLB;

@end

@implementation TestSingleImageCell

- (void)setup {
    [super setup];
    [self.bgV addSubview:self.urlLB];
    [self.urlLB mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.right.equalTo(self.bgV);
    }];
}

- (void)bindTo:(BindModel *)model {
    [super bindTo:model];
    BindModel *bind = (BindModel *)model;
    RowImageBaseM *info = (RowImageBaseM *)bind.model;
    self.urlLB.text = info.imageControl.imageUrl;
}

- (UILabel *)urlLB {
    if (!_urlLB) {
        _urlLB = [[UILabel alloc] init];
        _urlLB.font = [UIFont systemFontOfSize:14];
        _urlLB.textColor = [UIColor redColor];
        _urlLB.numberOfLines = 0;
    }
    return _urlLB;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
